import { Result } from 'ant-design-vue'
import Vue from 'vue'
const aSpinningKey = true
const cancelLoading = (val) =>{
    if(!val){
        setIntervalFun(false)
    }else{
        aSpinningKey = true
    }
    //console.log('当前的返回值是什么呢？=====有没有等于1',val)
    return val==1?false:true
}
const setIntervalFun = (val) =>{
    var num = 0
    let timer = setInterval(()=>{
        aSpinningKey = false
        cancelLoading(1)
        num = num+1
    },2000)
    // clearInterval(timer);
}
export {
    aSpinningKey,
    cancelLoading,
    setIntervalFun
}